/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.qhq.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 学校管理Entity
 * @author 秦华权
 * @version 2017-11-27
 */
public class SchoolDeptlist extends DataEntity<SchoolDeptlist> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 学部名称
	private School school;		// 学校编号 父类
	
	public SchoolDeptlist() {
		super();
	}

	public SchoolDeptlist(String id){
		super(id);
	}

	public SchoolDeptlist(School school){
		this.school = school;
	}

	@Length(min=0, max=100, message="学部名称长度必须介于 0 和 100 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=64, message="学校编号长度必须介于 0 和 64 之间")
	public School getSchool() {
		return school;
	}

	public void setSchool(School school) {
		this.school = school;
	}
	
}